package com.lkx.util.strategy;

import org.apache.poi.ss.usermodel.Workbook;

import java.io.InputStream;

/**
 * ClassName: Context
 * Function:  Context
 *
 * @Date: 2021年09月21日 16:45:47
 * @Author Kaixuan.Li01
 * version V1.0
 */
public class Context {

    Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public Workbook executeStrategy(String fileType, InputStream is, Workbook wb) throws Exception {
        return strategy.version(fileType,is,wb);
    }
}
